<%--                                                                       --%>
<%-- Copyright (c) 2005 BroadVision, Inc.  All rights reserved.            --%>
<%--                                                                       --%>
<%-- This software is copyrighted. Under the copyright laws, this software --%>
<%-- may not be copied, in whole or in part, without prior written consent --%>
<%-- of BroadVision, Inc. or its assignees. This software is provided      --%>
<%-- under the terms of a license between BroadVision and the recipient,   --%>
<%-- and its use is subject to the terms of that license.                  --%>
<%--                                                                       --%>
<%-- This software may be protected by one or more U.S. and International  --%>
<%-- patents.  Certain applications of BroadVision One-To-One software are --%>
<%-- covered by U.S. patent 5,710,887.                                     --%>
<%--                                                                       --%>
<%-- TRADEMARKS: BroadVision and BroadVision One-To-One are registered     --%>
<%-- trademarks of BroadVision, Inc., in the United States and the         --%>
<%-- European Community, and are trademarks of BroadVision, Inc., in other --%>
<%-- countries.  The BroadVision logo, is a trademark of BroadVision,      --%>
<%-- Inc., in the United States and other countries. Additionally, IONA    --%>
<%-- and Orbix are trademarks of IONA Technologies, Ltd.  RSA, MD5, and    --%>
<%-- RC2 are trademarks of RSA Data Security, Inc.                         --%>
<%--                                                                       --%>

<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/struts-html-el.tld" prefix="html-el" %>
<%@ taglib uri="/WEB-INF/struts-bean-el.tld" prefix="bean-el" %>

<script language="JavaScript">

//
//
//
function doCancel(form) {
  form.action = "<c:url value="/ep/programExtendedAttrsView.do"/>";
  form.submit();
}

</script>

<html-el:javascript formName="epProgramExtendedAttrsForm" method="validateForm"/>

<table class="zoneFive" width="100%" border="0" cellspacing="0" cellpadding="0" summary="content area">
  <tr>
    <td valign="top" width="100%">
      <div class="pageTitle">
      <bean-el:message key="ep.program.edit.page.title" bundle="ep.messages" arg0="${epProgramView.map.name}"/>
      </div>
      <div class="errorMessage"><html-el:errors bundle="ep.messages"/></div>
      <%@ include file="/mc/common/pagetab.jsp" %>

      <!- place body here -->
      <div class="breadcrumb">
      <c:if test="${not empty epProgramView.map.breadcrumbs}">
        <bean:size id="len" name="epProgramView" property="breadcrumbs"/>
        <c:forEach var="channel" items="${epProgramView.map.breadcrumbs}" varStatus="index">
          <c:url var="browseUrl" value="/ep/channelBrowse.do">
            <c:param name="channelId" value="${channel.map.id}"/>
          </c:url>
          <c:if test="${index.count > 1}"><bean-el:message key="ep.breadcrumb.delimiter" bundle="ep.messages"/>&nbsp;</c:if><c:if test="${index.count != len}"><!--a href="<c:out value="${browseUrl}"/>"--></c:if><c:out value="${channel.map.name}"/><c:if test="${index.count != len}"><!--/a--></c:if>
        </c:forEach>
      </c:if>
      </div>

      <html-el:form action="/ep/programExtendedAttrsSave.do" onsubmit="return validateForm(this);">

      <html-el:hidden property="programId" value="${epProgramView.map.id}"/>
      <input type="hidden" name="ctx.f" value="<c:out value="${requestScope['ctx.f']}"/>"/>

      <div class="pageSubtitle">
        <span class="left"><bean-el:message key="ep.program.extended.attr.values" bundle="ep.messages"/></span>
        <span class="right">&nbsp;
        </span>
      </div>

      <table class="labelForm" width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td class="label" width="10%"><bean-el:message key="ep.program.strcol1" bundle="ep.messages"/>:</td>
        <td class="labelField" width="90%"><html-el:text property="strcol1" size="40" maxlength="255"/>
        </td>
      </tr>

      <tr>
        <td class="label" width="10%"><bean-el:message key="ep.program.strcol2" bundle="ep.messages"/>:</td>
        <td class="labelField" width="90%"><html-el:text property="strcol2" size="40" maxlength="255"/>
        </td>
      </tr>

      <tr>
        <td class="label" width="10%"><bean-el:message key="ep.program.strcol3" bundle="ep.messages"/>:</td>
        <td class="labelField" width="90%"><html-el:text property="strcol3" size="40" maxlength="255"/>
        </td>
      </tr>

      <tr>
        <td class="label" width="10%"><bean-el:message key="ep.program.intcol1" bundle="ep.messages"/>:</td>
        <td class="labelField" width="90%"><html-el:text property="intcol1" size="6" maxlength="11"/>
        </td>
      </tr>

      <tr>
        <td class="label" width="10%"><bean-el:message key="ep.program.intcol2" bundle="ep.messages"/>:</td>
        <td class="labelField" width="90%"><html-el:text property="intcol2" size="6" maxlength="11"/>
        </td>
      </tr>

      <tr>
        <td class="label" width="10%"><bean-el:message key="ep.program.intcol3" bundle="ep.messages"/>:</td>
        <td class="labelField" width="90%"><html-el:text property="intcol3" size="6" maxlength="11"/>
        </td>
      </tr>

      </table>

      <div class="pageButtonWrap" align="right">
        <input type="reset" name="resetBtn" value="<bean-el:message key='button.reset' bundle="ep.messages"/>" class="inputButton">
        &nbsp;&nbsp;
        <input type="button" name="cancelData" class="inputButton" value="<bean-el:message key='button.cancel' bundle="ep.messages"/>" onclick="doCancel(this.form)">
        <input type="submit" name="save" class="inputButton" value="<bean-el:message key='button.save' bundle="ep.messages"/>">
      </div>

      </html-el:form>

    </td>
  </tr>
</table>
